Optimal. Leaf size=174 \[ \frac {2 a (5 A+7 C) \sin (c+d x)}{21 d \sqrt {\sec (c+d x)}}+\frac {2 a (5 A+7 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{21 d}+\frac {2 a (3 A+5 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}+\frac {2 a A \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 a A \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.20, antiderivative size = 174, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 7, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.212, Rules used = {4075, 4047, 3769, 3771, 2641, 4045, 2639} \[ \frac {2 a (5 A+7 C) \sin (c+d x)}{21 d \sqrt {\sec (c+d x)}}+\frac {2 a (5 A+7 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{21 d}+\frac {2 a (3 A+5 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}+\frac {2 a A \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 a A \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2639
Rule 2641
Rule 3769
Rule 3771
Rule 4045
Rule 4047
Rule 4075
Rubi steps
\begin {align*} \int \frac {(a+a \sec (c+d x)) \left (A+C \sec ^2(c+d x)\right )}{\sec ^{\frac {7}{2}}(c+d x)} \, dx &=\frac {2 a A \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x)}-\frac {2}{7} \int \frac {-\frac {7 a A}{2}-\frac {1}{2} a (5 A+7 C) \sec (c+d x)-\frac {7}{2} a C \sec ^2(c+d x)}{\sec ^{\frac {5}{2}}(c+d x)} \, dx\\ &=\frac {2 a A \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x)}-\frac {2}{7} \int \frac {-\frac {7 a A}{2}-\frac {7}{2} a C \sec ^2(c+d x)}{\sec ^{\frac {5}{2}}(c+d x)} \, dx+\frac {1}{7} (a (5 A+7 C)) \int \frac {1}{\sec ^{\frac {3}{2}}(c+d x)} \, dx\\ &=\frac {2 a A \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {2 a A \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 a (5 A+7 C) \sin (c+d x)}{21 d \sqrt {\sec (c+d x)}}+\frac {1}{5} (a (3 A+5 C)) \int \frac {1}{\sqrt {\sec (c+d x)}} \, dx+\frac {1}{21} (a (5 A+7 C)) \int \sqrt {\sec (c+d x)} \, dx\\ &=\frac {2 a A \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {2 a A \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 a (5 A+7 C) \sin (c+d x)}{21 d \sqrt {\sec (c+d x)}}+\frac {1}{5} \left (a (3 A+5 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\cos (c+d x)} \, dx+\frac {1}{21} \left (a (5 A+7 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx\\ &=\frac {2 a (3 A+5 C) \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{5 d}+\frac {2 a (5 A+7 C) \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{21 d}+\frac {2 a A \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {2 a A \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 a (5 A+7 C) \sin (c+d x)}{21 d \sqrt {\sec (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 2.47, size = 188, normalized size = 1.08 \[ \frac {a e^{-i d x} \sqrt {\sec (c+d x)} (\cos (d x)+i \sin (d x)) \left (-28 i (3 A+5 C) e^{i (c+d x)} \sqrt {1+e^{2 i (c+d x)}} \, _2F_1\left (\frac {1}{2},\frac {3}{4};\frac {7}{4};-e^{2 i (c+d x)}\right )+\cos (c+d x) (5 (23 A+28 C) \sin (c+d x)+42 A \sin (2 (c+d x))+15 A \sin (3 (c+d x))+84 i (3 A+5 C))+20 (5 A+7 C) \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )\right )}{210 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.44, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {C a \sec \left (d x + c\right )^{3} + C a \sec \left (d x + c\right )^{2} + A a \sec \left (d x + c\right ) + A a}{\sec \left (d x + c\right )^{\frac {7}{2}}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (C \sec \left (d x + c\right )^{2} + A\right )} {\left (a \sec \left (d x + c\right ) + a\right )}}{\sec \left (d x + c\right )^{\frac {7}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 4.75, size = 378, normalized size = 2.17 \[ -\frac {2 \sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, a \left (240 A \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\sin ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-528 A \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\sin ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\left (448 A +140 C \right ) \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+\left (-122 A -70 C \right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+25 A \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-63 A \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )+35 C \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-105 C \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )\right )}{105 \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (C \sec \left (d x + c\right )^{2} + A\right )} {\left (a \sec \left (d x + c\right ) + a\right )}}{\sec \left (d x + c\right )^{\frac {7}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {\left (A+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right )\,\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}{{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{7/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ a \left (\int \frac {A}{\sec ^{\frac {7}{2}}{\left (c + d x \right )}}\, dx + \int \frac {A}{\sec ^{\frac {5}{2}}{\left (c + d x \right )}}\, dx + \int \frac {C}{\sec ^{\frac {3}{2}}{\left (c + d x \right )}}\, dx + \int \frac {C}{\sqrt {\sec {\left (c + d x \right )}}}\, dx\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________